package com.lyq.permission.mapper;

import com.lyq.basic.mapper.BaseMapper;
import com.lyq.permission.domain.Role;
import com.lyq.permission.dto.EmpRoleDTO;
import com.lyq.permission.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:liangyunqian
 * @Date: 2022/12/14  13:06
 * @Description:
 */
public interface RoleMapper extends BaseMapper<Role> {

    void deletePermissionByRoleId(Long roleId);

    void batchSaveRolePermission(@Param("roleId") Long roleId,@Param("permissionSns") List<String> permissionSns);

    List<String> getRolePermissionSns(Long roleId);

    void saveEmpRole(EmpRoleDTO dto);

    EmpRoleDTO getEmpRole(Long empId);
}
